package com.imooc.bilibili.exception;

import lombok.Data;

/**
 * 条件异常
 *
 * @author gcq
 * @Create 2022-05-23
 */
@Data
public class ConditionException extends RuntimeException {

    private static final long serialVersionUID = 1L;
    /**
     * 错误信息编码
     *
     */
    private String code;

    public ConditionException(String code, String name) {
        super(name);
        this.code = code;
    }

    public ConditionException(String name) {
        super(name);
        this.code = "500";
    }

}